package com.medical.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 问诊帖
 * </p>
 *
 * @author 风花雪月
 * @since 2024-08-02
 */
@Data
@TableName("posts")
public class Posts implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 帖子内容
     */
    @TableField("posts_content")
    private String postsContent;

    /**
     * 帖子图片
     */
    @TableField("posts_image")
    private String postsImage;

    /**
     * 帖子创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 帖子发表用户名
     */
    @TableField("publisher")
    private String publisher;

    /**
     * 问诊id
     */
    @TableField("consultation_id")
    private Integer consultationId;

    /**
     * 1表示为医生 0表示为患者
     */
    @TableField("person_type")
    private Integer personType;
}
